import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Lesson4OneComponent } from './lesson4-one/lesson4-one.component';
import { Lesson4TwoComponent } from './lesson4-two/lesson4-two.component';
import { Lesson4ThreeComponent } from './lesson4-three/lesson4-three.component';
import { Lesson4FourComponent } from './lesson4-four/lesson4-four.component';
import { Lesson4FiveComponent } from './lesson4-five/lesson4-five.component';
import { Lesson4SixComponent } from './lesson4-six/lesson4-six.component';
import { Lesson4SevenComponent } from './lesson4-seven/lesson4-seven.component';
import { HighlightModule } from 'ngx-highlightjs';
import xml from 'highlight.js/lib/languages/xml';
import scss from 'highlight.js/lib/languages/scss';
import typescript from 'highlight.js/lib/languages/typescript';
export function hljsLanguages() {
  return [
    {name: 'typescript', func: typescript},
    {name: 'scss', func: scss},
    {name: 'xml', func: xml}
  ];
}
@NgModule({
  declarations: [
    Lesson4OneComponent,
    Lesson4TwoComponent,
    Lesson4ThreeComponent,
    Lesson4FourComponent,
    Lesson4FiveComponent,
    Lesson4SixComponent,
    Lesson4SevenComponent
  ],
  imports: [
    CommonModule,
    HighlightModule.forRoot({
      languages: hljsLanguages
    })
  ]
})
export class Lesson4Module { }
